<?php
error_reporting(E_ALL || E_STRICT);

define('APPLICATION_PATH',  realpath(dirname(__FILE__)).'/../application');

set_include_path(
    APPLICATION_PATH . '/../library'
    . PATH_SEPARATOR . get_include_path()
);

require_once 'Zend/Loader.php';
Zend_Loader::registerAutoload();

try
{
    require '../application/bootstrap.php';
}
catch (Exception $exc)
{
    echo "<html><body> an exception occurred while bootstrapping the application";

    if (define('APPLICATION_ENVIRONMENT') && APPLICATION_ENVIRONMENT != 'production')
    {
        echo "<br><br>";
        echo $exc->getMessage();
        echo "<br><div align='left'> Strack Trace:";
        echo '<pre>';
        print_r($exc->getTraceAsString());
        echo '</pre>';
    }
    echo '</body></html>';
}
Zend_Controller_Front::getInstance()->dispatch();